<?php

header("Content-Type: application/json");
session_start();
$resp = "";
if (isset($_GET['ready']) && $_GET['ready'] != NULL) {
    $resp = unserialize($_SESSION['pack']);
} else {
    if ($_SESSION['pack'] == NULL) {
        $resp = json_encode(array('ERROR' => 'Contenido Vacio'));
    } else {
        $pack = unserialize($_SESSION['pack']);
        $resp = json_encode($pack);
    }
}
echo $resp;
?>